<style>
    .item-div > input:nth-child(1){
        width: 150px;
        margin-right: 20px;
    }
    .item-div > input:nth-child(2){
        width: 300px;
        min-width: 200px;
    }
    .item-div{
        margin-bottom: 15px;
    }
    #bt_addItem{
        margin-left: 20px;
    }
</style>
<table style="width: 100%;height: 100%">
    {% if NavUl is defined %}
        <tr style="height: 67px">
            <td valign="top">{{ NavUl }}</td>
        </tr>
    {% endif %}
    <tr style="height:100%;" >
        <!--列表内容-->
        <td class="xh-datagrid">{{ List }}</td>
    </tr>
    <tr>
        <td valign="top">
            <!--表单内容-->
            <form id="xh_form" class="xh-form" action="{{ url('Speak/addReplacementsData') }}" method="post" style="display: none;">
                <div class="row">
                    <div class="col-md-12">
                        <div class="smart-widget">
                            <div class="smart-widget-header">
                                <strong>批量添加字典</strong>
                            </div>
                            <div class="smart-widget-inner">
                                <div class="smart-widget-body" style="padding-left: 20px;">
                                    {% for i in 1..10 %}
                                    <div class="form-inline item-div">
                                        key：
                                        <input type="text" class="form-control" name="key[]">
                                        value：
                                        <input type="text" class="form-control" name="value[]">
                                        {% if i == 10 %}
                                            <a id="bt_addItem" class="btn btn-success">增加字典项</a>
                                        {% endif %}
                                    </div>
                                    {% endfor %}
                                    <a id="bt_form_add" class="btn btn-danger disable">确认提交</a>
                                    <a id="bt_form_back" class="btn btn-default disable">返回</a>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </form>
        </td>
    </tr>
</table>
